package com.seckill.service.Impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seckill.dao.KillGoodsDao;
import com.seckill.model.KillGoods;
import com.seckill.service.KillGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KillGoodsServiceImpl extends ServiceImpl<KillGoodsDao,KillGoods> implements KillGoodsService {

    @Autowired(required = false)
    KillGoodsDao killGoodsDao;

    @Override
    public List<KillGoods> KillGoodsAll() {
        return killGoodsDao.KillGoodsAll();
    }

    @Override
    public KillGoods KillGoodsById(int killid) {
        return killGoodsDao.KillGoodsById(killid);
    }

    @Override
    public int KillGoodsDace(int killid) {
        return killGoodsDao.KillGoodsDace(killid);
    }


}
